export default {
  UPDATE_LOADING(state, bool) {
    state.showLoading = bool
  },
  //  更改count的方法,num传过来的数据就，传多个参数,接受对象,所以的数据最好在这里修改，最好不要在外面修改
  updateCount(state, {
    num,
    num2
  }) {
    state.count = num
  },
  updateName(state, uName) {
    state.firstName = uName
  },
  breadListMutations(getters, list) {
    getters.breadListState = list;
    sessionStorage.setItem('breadListStorage', list);
  }
}
